package com.ftdigital.primemovers_operators.model;

import com.ftdigital.primemovers_operators.config.RequestAddr;

/**
 * Created by Curry on 2015-12-24.
 */
public class UserInfo {

    /**
     * flag : true
     * data : {"user_name":"张曲言","supplier_id":1,"gasstation_id":1,"emp_no":"ZZ101","supplier_name":"河北承德市供应商","account":"zhangquyan","user_id":1,"password":"","gasstation_name":"承德1站","url":"3.png","mobile":"13122923215"}
     * msg : 成功
     */
    private boolean flag;
    private DataEntity data;
    private String msg;

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isFlag() {
        return flag;
    }

    public DataEntity getData() {
        return data;
    }

    public String getMsg() {
        return msg;
    }

    public class DataEntity {
        /**
         * user_name : 张曲言
         * supplier_id : 1
         * gasstation_id : 1
         * emp_no : ZZ101
         * supplier_name : 河北承德市供应商
         * account : zhangquyan
         * user_id : 1
         * password :
         * gasstation_name : 承德1站
         * url : 3.png
         * mobile : 13122923215
         */
        private String user_name;
        private int supplier_id;
        private int gasstation_id;
        private String emp_no;
        private String supplier_name;
        private String account;
        private int user_id;
        private String password;
        private String gasstation_name;
        private String url;
        private String mobile;

        public void setUser_name(String user_name) {
            this.user_name = user_name;
        }

        public void setSupplier_id(int supplier_id) {
            this.supplier_id = supplier_id;
        }

        public void setGasstation_id(int gasstation_id) {
            this.gasstation_id = gasstation_id;
        }

        public void setEmp_no(String emp_no) {
            this.emp_no = emp_no;
        }

        public void setSupplier_name(String supplier_name) {
            this.supplier_name = supplier_name;
        }

        public void setAccount(String account) {
            this.account = account;
        }

        public void setUser_id(int user_id) {
            this.user_id = user_id;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public void setGasstation_name(String gasstation_name) {
            this.gasstation_name = gasstation_name;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getUser_name() {
            return user_name;
        }

        public int getSupplier_id() {
            return supplier_id;
        }

        public int getGasstation_id() {
            return gasstation_id;
        }

        public String getEmp_no() {
            return emp_no;
        }

        public String getSupplier_name() {
            return supplier_name;
        }

        public String getAccount() {
            return account;
        }

        public int getUser_id() {
            return user_id;
        }

        public String getPassword() {
            return password;
        }

        public String getGasstation_name() {
            return gasstation_name;
        }

        public String getUrl() {
            return RequestAddr.imageUrl+url;
        }

        public String getMobile() {
            return mobile;
        }
    }
}
